<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高 选中几率越大 -->
		<style>
			*{  /*权值0  很容易被覆盖*/
				 color: #7feace !important;
				 background: #8fadcd  !important;
			}
			div{  /*权值1*/
				color: #0055ff;
				background: #af8fad;
			}
			.d1{  /*权值10*/
				color: azure;
				background: orangered;
			}
			div.d1{  /*选择器权值之和 权值11*/
				color: olivedrab;
				background: blanchedalmond;
			}
			body div.d1{/*权值12*/
				font-size: 25px;
				color: #aaff7f;
				background: #ffff7f;
			}
			#d1{ /*权值100*/
				font-size: 17px;
				color: #ff55ff;
				background: #5555ff;
			}
			div #d1{  /*权值101*/
				font-size: 20px;
			}
			div#d1:hover{  /*权值111*/
				color: #aaff7f;
				background: #cd9ec9;
			}
		</style>
			
		
	</head>
	<body>
		<div class="d1" id="d1"  >Lorem ipsum dolor sit amet consectetur adipisicing elit. Repudiandae nihil quibusdam accusamus in nobis aperiam rerum aliquid id placeat laudantium voluptatem esse perspiciatis tempora cupiditate iusto, minus corrupti cumque. Molestias!</div>
	</body>
</html>